package com.zdxlz.desensitize.demo;


//@Configuration
//public class DesensitizeConfig {
//    @Value("${desensitize.url}")
//    private String desensitizeUrl;
//    @Value("${desensitize.appId}")
//    private String appId;
//    @Value("${desensitize.appSecret}")
//    private String appSecret;
//    @Value("${desensitize.strict:false}")
//    private boolean strictFlag;
//
//    @Bean
//    public IDesensitizeService idesensitizeService(RedisUtil redisUtil, RestComponent restComponent){
//        return new RemoteWithCacheDesensitizeService(appId,appSecret,redisUtil,restComponent,
//                CacheConstant.DESENSITIZE_RULE_CACHE, desensitizeUrl, SystemConstant.DEFAULT_TOKEN_KEY,
//                -1L,3,strictFlag);
//    }
//
//    @Bean
//    public DesensitizeAspect desensitizeAspect(IDesensitizeService desensitizeService) {
//        return new DesensitizeAspect(new SuccessDesensitizeRuleServiceImpl(), desensitizeService, new ExtendDesensitizeUtil());
//    }
//}
//
